< previous page page_474 next page >

Page 474
Listing 12.6. continued
Public Property Let DatabaseName(ByVal vNewValue As String)
    '
    strDBName = vNewValue
    frmFind.Data1.DatabaseName = strDBName
    '
End Property
Note.gif
All the property routines you'll code here refer to the frmFind form. This form will be built in the next section of the chapter. If you attempt to run this project before building the frmFind form, you'll receive errors.

Next, add the Connect property to the project and enter the code from Listing 12.7.
Type.gifListing 12.7. Coding the Connect property procedures.
Public Property Get Connect() As String
    '
    Connect = frmFind.Data1.Connect
    '
End Property

Public Property Let Connect(ByVal vNewValue As String)
    '
    strConnect = vNewValue
    frmFind.Data1.Connect = strConnect
    '
End Property
Now add the RecordSource property and enter the code from Listing 12.8.
Type.gifListing 12.8. Adding the RecordSource property.
Public Property Get RecordSource() As String
    '
    RecordSource = frmFind.Data1.RecordSource
    '
End Property

 
< previous page page_474 next page >

If you like this book, buy it!